﻿using LdtJudge.DataEngine.DataBaseStores;
using LdtJudge.DataEngine.Model.DataModel.CommonManageModel;
using System;
using System.Collections.Generic;
using System.Text;

namespace LdtDataEngin.ModuleDetail.RegCommon.SourceDataAnalysis
{
    public interface IExtractSource
    {
        /// <summary>
        /// 动态数据层
        /// </summary>
        DataContext dataContext { get; set; }
        /// <summary>
        /// 获取数据源配置内容
        /// </summary>
        /// <param name="extractSource">数据源对象</param>
        /// <param name="parentOriginalTxt">父级原文内容</param>
        /// <returns></returns>
        string GetSourceDataOriginalTxt(ElementExtractSource extractSource, string parentOriginalTxt);

        /// <summary>
        /// 获取数据源配置内容
        /// </summary>
        /// <param name="spokePersonJoinIsNull">用于验证动态数据层中数据如果为空进行赋值处理</param>
        /// <param name="extractSource">数据源对象</param>
        /// <param name="parentOriginalTxtList">父级原文内容</param>
        /// <returns></returns>
        System.Collections.Generic.IList<string> GetSourceDataOriginalListTxt(Verification_spokePersonIsNull spokePersonJoinIsNull, ElementExtractSource extractSource, System.Collections.Generic.IList<string> parentOriginalTxtList);
    }
}
